package com.endava.service;

import com.endava.model.Login;

/**
 * Contract used by the SERVICE layer to make the login operations.
 * 
 * @author acojocar
 * 
 */
public interface LoginService {

	public static final String USER_ROLE = "user";
	public static final String ADMIN_ROLE = "admin";

	/**
	 * Returns the user from database by it's credentials
	 * 
	 * @param username
	 *            credential
	 * @param password
	 *            credential
	 * @return <code>Login</code> bean
	 */
	public Login getUserByCredentials(String username, String password);

}
